/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "PhysicsConfig.h"

namespace PQEngine
{
	PhysicsConfig::PhysicsConfig()
	{
		//default configurations
		_maxSubstep=1;
		_fixedTimeStep=1.0f/60.0f;

		_broadPhaseType=BPT_DBVT;
		_gravity=Ogre::Vector3(0,-9.81f,0);
		_bounds=Ogre::AxisAlignedBox(Ogre::Vector3(-10000,-10000,-10000),Ogre::Vector3 (10000,10000,10000));

	}

	PhysicsConfig& PhysicsConfig::getSingleton()
	{
		static PhysicsConfig inst;
		return inst;
	}

}
